package cn.edu.xmu.oomall.aftersale.microservice;

import cn.edu.xmu.oomall.aftersale.model.vo.SimpleCustomerVo;
import cn.edu.xmu.privilegegateway.annotation.util.InternalReturnObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author X-Raymond
 * @date 2021/12/9
 */
@FeignClient(name = "customer-service")
public interface CustomerService {
    /**
     * 获得用户信息
     *
     * @param id
     * @return
     */
    @GetMapping("/internal/customers/{id}")
    InternalReturnObject<SimpleCustomerVo> getSimpleCustomerById(@PathVariable("id") Long id);
}
